<?php
/**
 * Created by PhpStorm.
 * Script Name: Base.php
 * Create: 2022/12/22 11:04
 * Description:
 * Author: fudaoji<fdj@kuryun.cn>
 */

namespace plugin\wechat\app\model;


use app\BaseModel;

class Base extends BaseModel
{
    // 设置当前模型的数据库连接
    protected $connection = 'wechat';

    public function __construct($data = [])
    {
        $this->table = $this->getTablePrefix() . 'wechat_'.$this->table;
        parent::__construct($data);
    }
}